using System.Net;
using System.Web;

namespace OpenWaves.ActivityFeed.Web.Handler
{
    internal class HttpResult : IActionResult
    {
        private readonly HttpStatusCode httpStatusCode;

        public HttpResult(HttpStatusCode httpStatusCode)
        {
            this.httpStatusCode = httpStatusCode;
        }

        public void Execute(HttpResponseBase response)
        {
            response.StatusCode = (int) this.httpStatusCode;
        }
    }
}